<template>
	<view class="content">        
        <view class="list">
            <view v-for="item in list">

            </view>
        </view>
        <button @click="toAdd">添加</button>
        
	</view>
</template>

<script>
    import storage from '../../storage/index'
	export default {
		data() {
			return {
                list:[]
			}
		},
		onLoad() {
            this.getData()
		},
		methods: {
            getData(){
                let data = storage.get('keys')
                this.list = data || []
            },
			toAdd() {
                uni.navigateTo({
					url: '/pages/add/newData'
				})
			}
		}
	}
</script>

<style>
	.content {
	}
    .list{

    }
</style>
